package com.JZ.QM.feign;

import com.JZ.QM.common.entity.CombinationBaseInfoEntity;
import com.JZ.QM.common.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author cyc
 * @email cyc@gmail.com
 * @date 2020/6/20 17:01
 */
@FeignClient("investment-advisor-service")
public interface CombinationFeignService {

    //获取组合的基本信息
    @RequestMapping("/combinationBaseInfo/getCombinationBaseInfoEntity")
    CommonResult getComBaseInfo(@RequestParam("comBaseId")Long comBaseId);

    //获取组合中各个产品信息
    @RequestMapping("/combinationShare/getCombinationShareInfo")
    CommonResult getCombinationShareInfoById(@RequestParam("comBaseId")Long comBaseId);

    //获取组合的详细信息(组合占比)
    @RequestMapping("/combinationShare/getCombinationShareDetails")
    CommonResult getCombinationShareNamesById(@RequestParam("comBaseId")Long comBaseId);
}
